import request from '@/utils/request'

// 查询商品快照列表
export function listMallProductBack(query) {
  return request({
    url: '/shopping/mallProductBack/list',
    method: 'get',
    params: query
  })
}

// 查询商品快照详细
export function getMallProductBack(id) {
  return request({
    url: '/shopping/mallProductBack/' + id,
    method: 'get'
  })
}

// 新增商品快照
export function addMallProductBack(data) {
  return request({
    url: '/shopping/mallProductBack',
    method: 'post',
    data: data
  })
}

// 修改商品快照
export function updateMallProductBack(data) {
  return request({
    url: '/shopping/mallProductBack',
    method: 'put',
    data: data
  })
}

// 删除商品快照
export function delMallProductBack(id) {
  return request({
    url: '/shopping/mallProductBack/' + id,
    method: 'delete'
  })
}
// 删除商品快照
export function logicDelMallProductBack(id) {
  return request({
    url: '/shopping/mallProductBack/' + id,
    method: 'delete'
  })
}

// 导出商品快照
export function exportMallProductBack(query) {
  return request({
    url: '/shopping/mallProductBack/export',
    method: 'get',
    params: query
  })
}
